#ifndef gui_h_
#define gui_h_


#include "SDL/SDL.h"
#include "SDL/SDL_opengl.h"
#include <list>
#include "player.h"
#include "globaldef.h"
#include "ptrContainer.h"
#include <string>
#include <sstream>

using std::list;
using std::stringstream;
using std::string;

class gui
{

  public:
    gui();//Please never call this
    gui(player & theplayer);
    ~gui();

    //graphics
    void draw(ptrContainer & dcontainer);
    void drawdownbar();
    void drawnum(int num, int x, int y, int charw = 16, int charh = 32, float r = 1, float g = 1, float b = 1, float a = 1);
    void drawstr(string num, int x, int y, int charw = 16, int charh = 32, float r = 1, float g = 1, float b = 1, float a = 1);
    void drawstrleft(string num, int x, int y, int charw = 16, int charh = 32, float r = 1, float g = 1, float b = 1, float a = 1);

    bool updateTime(double prog);


    static GLuint tex;
    static GLuint* numarr;
    player* p1;
    double timetonextround;

};

#endif
